package updown.domain;

import lombok.Data;

/**
 * <p>Title: updown.domain </p>
 * <p>Description:updown: - 定时任务 </p>
 *
 * @Author:jiangkaixin
 * @Date:1/5/2022
 * @Version: 1.0
 */
@Data
public class DownUpScheduleWrapperBean extends BaseEntity{
    private String startTime;
    private String endTime;
    private String spendTime;
    private String scheduleTime;
    private String localFilePath;
    private String jarVersionInfo;
    private String originalFileName;
    private String taskId;
    private String serviceName;
    private Boolean success = Boolean.FALSE;
    private Boolean done = Boolean.FALSE;

    public DownUpSchedule convert(){
        DownUpSchedule downUpSchedule = DownUpSchedule.builder()
                .taskId(this.taskId)
                .serviceName(this.serviceName)
                .scheduleTime(this.scheduleTime)
                .success(success)
                .done(done)
                .startTime(startTime)
                .endTime(endTime)
                .spendTime(spendTime)
                .jarVersionInfo(jarVersionInfo)
                .localFilePath(localFilePath)
                .originalFileName(originalFileName).build();
        return downUpSchedule;
    }
}
